package com.kaishengit.dao;

import com.kaishengit.entity.Order;
import com.kaishengit.util.DBHelp;

public class OrderDao {

	private DBHelp<Order> db = new DBHelp<Order>();
	
	public void save(Order order) {
		String sql = "insert into t_order(id,name,tel,address,createtime,userid,state) values(?,?,?,?,?,?,?)";
		db.executeSQL(sql, order.getId(),order.getName(),order.getTel(),order.getAddress(),order.getCreateTime(),order.getUserid(),order.getState());
	}
}
